package com.neulogistics.contrib.warehouse.api.application.converter;


public class WarehouseEntityCommandConverter {
//    public static Warehouse commandToEntity(CreateWarehouseCommand command){
//        if(command == null)
//            return null;
//
//        String WarehouseName = command.getWarehouseName();
//        String flatsName = command.getFlatsName();
//        String WarehouseIdentity = command.getWarehouseIdentity();
//        String WarehousePhone = command.getWarehousePhone();
//        Address receiverAddress = command.getReceiverAddress();
//        String WarehouseEmail = command.getWarehouseEmail();
//        String WarehouseLandline = command.getWarehouseLandline();
//
//        Warehouse Warehouse = new Warehouse(WarehouseName, flatsName, WarehouseIdentity,
//                WarehousePhone, receiverAddress, WarehouseEmail, WarehouseLandline);
//
//        return Warehouse;
//    }

//    public static Warehouse commandToEntity(UpdateWarehouseCommand command){
//        if(command == null)
//            return null;
//
//        Warehouse Warehouse = new Warehouse();
//        Warehouse.setWarehouseName(command.getWarehouseName());
//        Warehouse.setFlatsName(command.getFlatsName());
//        Warehouse.setWarehousePhone(command.getWarehousePhone());
//        Warehouse.setReceiverAddress(command.getReceiverAddress());
//        Warehouse.setWarehouseEmail(command.getWarehouseEmail());
//        Warehouse.setWarehouseLandline(command.getWarehouseLandline());
//        Warehouse.setWarehouseId(command.getWarehouseId());
//
//        return Warehouse;
//    }
}
